<include file="Public/frame" />
    <style type="text/css">
        table{
            border:1px solid #e9e9e9;
        }
        .head{
            border-bottom:1px solid #e9e9e9;
            line-height: 30px;
        }
        td{
            text-align: center;
        }
        .place{
   font-size: 16px;
    font-weight: bold;
    border-left: 2px solid #0084FF;

}
    </style>
<!--/左边栏-->
<!--主要内容区-->
<div class="content-wrap">
    <div class="hd cf place">&nbsp;&nbsp;&nbsp;订单列表</div>
    <!-- 选项卡导航 -->
    <div class="mtab-wrap cf">
        <ul class="member-tabnav ua-tab">
            <li class="current">
                <a href="{:U('User/Order/lists')}">全部</a>
            </li>
            <li>
                <a href="{:U('User/Order/payed')}">已付款</a>
            </li>
            <li>
                <a href="{:U('User/Order/unpay')}">未付款</a>
            </li>
            
        </ul>
    </div>
    <!-- /导航 -->
    <div class="tab-bd">
        <table width="100%" class="table-list">
        <thead>
            <tr>
                <th width="8%">交易编号</th>
                <th width="32%">产品名称</th>
                <th>单价</th>
                <th>数量</th>
                <th>总    额</th>
                <th>是否付款</th>
                <th>创建时间</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <foreach name="list" item="c">
                <tr>
                    <td>{$c['ordid']}</td>
                    <td>{$c['ordtitle']}</td>
                    <td>{$c['ordprice']}</td>
                    <td>{$c['ordbuynum']}</td>
                    <td>{$c['ordfee']}</td>
                    <td><if condition="$c['ordstatus'] eq 1">已付款<else/><font color="red">未付款</font></if></td>
                    <td>{$c['ordtime']|date='Y-m-d H:i:s',###}</td>
                    <td>
                        <if condition="$c['ordstatus'] eq 1">
                        多谢支持
                        <else/>
                        <a href="{:U('User/Order/pay',array('id'=>$c['id']))}" target="_blank">支付</a> <a href="{:U('User/Order/del',array('id'=>$c['id']))}">删除</a>
                        </if>
                    </td>
                </tr>
            </foreach>
            <tr>
                <td colspan="8" class="page">
                    {$page}
                </td>
            </tr>
        </tbody>
        </table>
    </div>
    <div class="a5"></div>
</div>
<!--主要内容区-->


<!-- /主体 -->
<!-- 底部 -->
<include file="Public/foot" />